<style type="text/css">
    .task1 p{ color: red;}
    .task1 span{color:red;}
</style>
<div class="task1">
    <?php
    if ($this->session->userdata('ms_error')) {
        echo message($this->session->userdata('ms_error'), "error");
        $this->session->unset_userdata("ms_error");
    }
    echo form_open('class_manager/edit/' . $this->uri->segment('3'));
    foreach ($getresult->result() as $rows) {
        echo '<div class="form-wrapper">';
        echo '<fieldset style="margin: 0 auto;width:60%;height: auto;border: 1px #ccc solid; padding:20px 15px 20px 15px;-moz-border-radius:10px;">';
        echo '<legend align="center" style="margin: 0px auto;"><div class="heading" style="margin: 0 auto;width: 100%;height: auto;border: 0px #ccc solid;text-align: center;font-size: 20px;color:#006600;">Add New Class</div></legend>';
        echo '<div style="float: right; border: 0px #ccc solid;">';
        echo anchor('class_manager/manager', img('images/user_images/cancel.png'));
        echo '</div>';
        echo '<table  align="center">';
        echo '<tr>';
        echo '<td valign="top">Class Name<span>*</span>:</td>';
        echo '<td>' . form_input('txtclassname', $rows->cla_name) . form_error('txtclassname') . '</td>';
        echo '</tr>';
        echo '<tr>';
        echo '<td align="left">Detail</td>';
        echo '<td> ' . form_textarea(array('name' => 'txtdetail', 'rows' => '8', 'cols' => '50', 'value' => $rows->cla_description)) . form_error('txtdetail') . '</td>';
        echo '</tr>';
        echo '<tr>';
        echo '<td></td>';
        echo '<td>' . form_submit('btn_submit', 'Update') . form_reset('btn_reset', 'Reset') . '</td>';
        echo '</tr>';
        echo '</table>';
        echo '</fieldset>';
        echo '</div>';
    }
    echo form_close();
    ?>
</div>
